package com.goktech.service;

import com.goktech.entity.Admin;
import com.goktech.entity.User;
import com.goktech.entity.inform;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface InformService {
    public List<Map<String,Object>> adminfindByAll(@Param("admin") Admin admin, @Param("begin") int begin, @Param("end") int end);

    public List<Map<String,Object>> adminPublicAll(@Param("begin") int begin, @Param("end") int end);

    public List<Map<String,Object>> adminPrivateByAll(@Param("admin") Admin admin, @Param("begin") int begin, @Param("end") int end);

    public List<Map<String,Object>> adminfindSendZhanghao(@Param("zhanghao") String zhanghao,@Param("zhanghao") String zhanghao1);

    public List<Map<String,Object>> adminfindReceiverZhanghao(@Param("admin") String adminZhanghao,@Param("user") String userZhanhao);

    public int insertPublic(@Param("inform") inform i);

    public List<Map<String,Object>> userfindByAll(@Param("user") User user, @Param("begin") int begin, @Param("end") int end);

    public List<Map<String,Object>> userfindByPrivate(@Param("user") User user, @Param("begin") int begin, @Param("end") int end);

    public List<Map<String,Object>> userfindSendZhanghao(@Param("userId") Integer userId,@Param("adminZhanghao") String adminZhanghao);
}
